import request from '@/utils/request'

// 查询团购列表
export function listGroupShop(query) {
  return request({
    url: '/group/groupShop/list',
    method: 'get',
    params: query
  })
}

// 查询团购详细
export function getGroupShop(id) {
  return request({
    url: '/group/groupShop/' + id,
    method: 'get'
  })
}

// 新增团购
export function addGroupShop(data) {
  return request({
    url: '/group/groupShop',
    method: 'post',
    data: data
  })
}

// 修改团购
export function updateGroupShop(data) {
  return request({
    url: '/group/groupShop',
    method: 'put',
    data: data
  })
}

// 删除团购
export function delGroupShop(id) {
  return request({
    url: '/group/groupShop/' + id,
    method: 'delete'
  })
}
